package org.kuan.lab.common.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kuan.lab.base.entity.BaseEntity;

/**
 * Project: erp<br>
 * Description: 用户资源实体表<br>
 * Copyright (c) 2012<br>
 * All Rights Reserved.<br>
 * @author <a href="mailto:gly420@163.com">GuanLuYong</a><br>
 */
@Entity
@Table(name = "ERP_USER_RESOURCE", schema = "DEVA")
public class UserResource extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name = "PERMISSION")
	private Long Permission;
	
	@ManyToOne
	private User user;
	
	@ManyToOne
	private Resource res;

	// Getter & Setter
	public Long getPermission() {
		return Permission;
	}

	public void setPermission(Long permission) {
		Permission = permission;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Resource getRes() {
		return res;
	}

	public void setRes(Resource res) {
		this.res = res;
	}
	
}
